<template>
  <div class="right-section">
    <div class="scroll-container">
      <div class="content-wrapper">
        <slot></slot>
        <div style="height: 80px;"></div>
      </div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.right-section {
  width: 420px;
  height: 100%;
  background: linear-gradient(270deg, rgba(13, 19, 35, 0.8) 0%, rgba(13, 19, 35, 0.4) 80%,rgba(0, 0, 0, 0) 100%);
  
  .scroll-container {
    height: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
  }

  .content-wrapper {
    direction: ltr;
    padding: 16px;
  }

  &::-webkit-scrollbar {
    width: 6px;
  }
  
  &::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
  }
  
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
  }
  
  :deep(.base-panel) {
    &:last-child {
      margin-bottom: 32px;
    }
  }
}

.glass-panel {
  background: rgba(13, 19, 35, 0.4);
  border-radius: 4px;
  border: 1px solid rgba(63, 158, 255, 0.1);
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      rgba(63, 158, 255, 0) 0%,
      rgba(63, 158, 255, 0.3) 50%,
      rgba(63, 158, 255, 0) 100%
    );
  }

  &::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      rgba(63, 158, 255, 0) 0%,
      rgba(63, 158, 255, 0.3) 50%,
      rgba(63, 158, 255, 0) 100%
    );
  }
}

.section-header {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #3f9eff;
  display: flex;
  align-items: center;
  gap: 15px;

  .tab {
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    font-size: 14px;
    padding: 4px 12px;
    border-radius: 2px;

    &.active {
      opacity: 1;
      color: #3f9eff;
      background: rgba(63, 158, 255, 0.1);
    }

    &:hover {
      opacity: 1;
    }
  }
}

.info-grid {
  display: grid;
  gap: 15px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(63, 158, 255, 0.05);
  padding: 10px;
  border-radius: 4px;
  
  .label {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
  }
  
  .value {
    color: #3f9eff;
    font-size: 20px;
    font-weight: 500;
    text-align: right;
    
    &.glow {
      text-shadow: 0 0 10px rgba(63, 158, 255, 0.5);
    }
    
    .unit {
      font-size: 12px;
      opacity: 0.8;
      margin-left: 4px;
    }
  }
}

.unit-grid {
  display: grid;
  gap: 10px;
}

.unit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  font-size: 14px;
  padding: 8px;
  background: rgba(63, 158, 255, 0.05);
  border-radius: 4px;
  transition: all 0.3s;

  &:hover {
    background: rgba(63, 158, 255, 0.1);
  }

  .unit-name {
    color: rgba(255,255,255,0.7);
  }

  .unit-status {
    color: #67c23a;
    text-align: center;
    padding: 2px 8px;
    background: rgba(103, 194, 58, 0.1);
    border-radius: 2px;
  }

  .unit-power {
    color: #3f9eff;
    text-align: right;
    font-weight: 500;
  }
}

.power-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(63, 158, 255, 0.05);
  border-radius: 4px;
  
  .station {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
  }
  
  .power-values {
    color: #3f9eff;
    font-size: 18px;
    font-weight: 500;
    
    .separator {
      margin: 0 8px;
      opacity: 0.5;
    }
    
    .unit {
      font-size: 12px;
      opacity: 0.8;
      margin-left: 6px;
    }

    .current {
      color: #67c23a;
    }
  }
}
</style> 